<?php
/**
 * Project: Recipe
 * File: KitchenArticleModel.class.php
 * Author: Xnfy520@gmail.com
 * Date: 12-5-26
 * Time: 下午3:35
 */

class KitchenArticleModel extends RelationModel{

	protected $_link = array(

		'KitchenCategory'=>array(
			'mapping_type'=>BELONGS_TO,
			'mapping_name'=>'kitchencategory',
			'class_name'=>'KitchenCategory',
			'foreign_key'=>'recipecategoryid',
		),

		'User'=>array(
			'mapping_type'=>BELONGS_TO,
			'mapping_name'=>'userinfo',
			'class_name'=>'User',
			'foreign_key'=>'founder',
		),

	);

}